package com.easy.mapper;

import com.easy.bean.Equipment;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentDao {
    int add(@Param("param") Equipment equipment);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Equipment equipment);
    Equipment one(@Param("id") Integer id);
    List<Equipment> all(
            @Param("name") String name,
            @Param("status") String status
    );
    int pageCount(@Param("param") Equipment equipment);
    List<Equipment> page(@Param("page") Page page, @Param("param") Equipment equipment);
}